home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / gfx / misc / MagicSelV1_75.lha / Install MagicSelector < prev    next >
Text File  |  1995-05-20  |  4KB  |  228 lines

  1. ; script to install MagicSelector 
  2. ; Version 1.75
  3. (set Opt 15)
  4. (complete 0)
  5. (set destdir "Sys:Prefs") 
  6. (set destdir2 "Sys:WBStartup") 
  7.  
  8. (set installfiles
  9.     (askoptions
  10.         (prompt "Which of the following optional programs/helpfile should be installed ?")
  11.         (help @askoptions-help)
  12.         (choices "MagicSelector" "MagicSelector Preferences" "MagicSelector.Guide")
  13.         (default Opt)
  14.     )
  15. )
  16.  
  17. (complete 20)
  18.  
  19. ;Copy program files to destination.
  20.  
  21. (if (BITAND installfiles 1)
  22. (copyfiles
  23.     (source "WBStartup/MagicSelector")
  24.     (dest destdir2)
  25. )
  26. )
  27.  
  28. (if (BITAND installfiles 1)
  29. (copyfiles
  30.     (source "WBStartup/MagicSelector.info")
  31.     (dest destdir2)
  32. )    
  33. )
  34.  
  35.  
  36. (if (BITAND installfiles 2)
  37. (copyfiles
  38.     (source "Preferences/MagicSelector")
  39.     (dest destdir)
  40. )
  41. )
  42.  
  43. (if (BITAND installfiles 2)
  44. (copyfiles
  45.     (source "Preferences/MagicSelector.info")
  46.     (dest destdir)
  47. )    
  48. )
  49.  
  50.  
  51. (if (BITAND installfiles 4)
  52. (
  53.     (makedir ("Help:English")
  54.     )
  55.  
  56. (copyfiles
  57.     (source "Help/MagicSelector.guide")
  58.     (dest "help:english/")
  59. )
  60. )
  61. )
  62.  
  63. (if (BITAND installfiles 4)
  64. (copyfiles
  65.     (source "Help/MagicSelector.guide.info")
  66.     (dest "help:english/")
  67. )
  68. )
  69.  
  70. (complete 40)
  71. (set Opt 64)
  72.  
  73. (set installfiles
  74.     (askoptions
  75.         (prompt "Which of the following locale should be installed ?")
  76.         (help @askoptions-help)
  77.         (choices "Norsk" "Deutsch" "Svenska" "Italiano" "Polski" "Dansk" "English (built-in)")
  78.         (default Opt)
  79.     )
  80. )
  81.  
  82. (if (BITAND installfiles 1)
  83. (copyfiles
  84.     (source "Preferences/Catalogs/Norsk/MagicSelector.Catalog")
  85.     (dest "Locale:Catalogs/Norsk/")
  86. )
  87. )
  88.  
  89. (if (BITAND installfiles 2)
  90. (copyfiles
  91.     (source "Preferences/Catalogs/Deutsch/MagicSelector.Catalog")
  92.     (dest "Locale:Catalogs/Deutsch/")
  93. )
  94. )
  95.  
  96. (if (BITAND installfiles 4)
  97. (copyfiles
  98.     (source "Preferences/Catalogs/Svenska/MagicSelector.Catalog")
  99.     (dest "Locale:Catalogs/Svenska/")
  100. )
  101. )
  102.  
  103. (if (BITAND installfiles 8)
  104. (copyfiles
  105.     (source "Preferences/Catalogs/Italiano/MagicSelector.Catalog")
  106.     (dest "Locale:Catalogs/italiano/")
  107. )
  108. )
  109.  
  110. (if (BITAND installfiles 16)
  111. (copyfiles
  112.     (source "Preferences/Catalogs/polski/MagicSelector.Catalog")
  113.     (dest "Locale:Catalogs/polski/")
  114. )
  115. )
  116.  
  117. (if (BITAND installfiles 16)
  118. (copyfiles
  119.     (source "Preferences/Catalogs/Dansk/MagicSelector.Catalog")
  120.     (dest "Locale:Catalogs/Dansk/")
  121. )
  122. )
  123.  
  124.  
  125. (set Opt 3)
  126. (complete 60)
  127.  
  128. (set installfiles
  129.     (askoptions
  130.         (prompt "Do you want to install Patterns/Sound Samples ?")
  131.         (help @askoptions-help)
  132.         (choices "Triumph Patterns" "Sound")
  133.         (default Opt)
  134.     )
  135. )
  136.  
  137.  
  138. (if (BITAND installfiles 1)
  139. (run "lx x Triumph_Patterns/Patterns.lha t:"))
  140.  
  141. (if (BITAND installfiles 1)
  142. (
  143.      (set Patterns_dest
  144.         (tackon
  145.         (askdir
  146.         (prompt "In which disk or drawer should the Triumph Patterns be installed? (A drawer WILL be created there.)")
  147.         (help @askdir-help)
  148.         (default @default-dest)
  149.         )"Triumph Patterns")
  150.         )
  151.  
  152.         (makedir Patterns_dest (infos))
  153.  
  154.         (copyfiles
  155.             (prompt "Copying all Patterns ?")
  156.             (help @copyfiles-help)
  157.             (source "t:Triumph_Patterns/")
  158.             (dest Patterns_dest)
  159.             (pattern "#?")
  160.             (infos)
  161.             (files)
  162.             (confirm)
  163. )
  164.         (run "delete t:Triumph_Patterns#? all")
  165. )
  166. )
  167.  
  168. (complete 80)
  169.  
  170. (if (BITAND installfiles 2)
  171. (run "lx x Samples/Samples.lha t:"))
  172.  
  173. (if (BITAND installfiles 2)
  174. (
  175.      (set Samples_dest
  176.         (tackon
  177.         (askdir
  178.         (prompt "In which disk or drawer should the Samples be installed? (A drawer WILL be created there.)")
  179.         (help @askdir-help)
  180.         (default @default-dest)
  181.         )"Samples")
  182.         )
  183.  
  184.         (makedir Samples_dest (infos))
  185.  
  186.         (copyfiles
  187.             (prompt "Copying all Samples ?")
  188.             (help @copyfiles-help)
  189.             (source "t:Samples/")
  190.             (dest Samples_dest)
  191.             (pattern "#?")
  192.             (infos)
  193.             (files)
  194.             (confirm)
  195. )
  196.         (run "delete t:Samples#? all")
  197. )
  198. )
  199.  
  200. (copyfiles
  201.     (source "WBPattern.prefs")
  202.     (dest "ENVARC:SYS/")
  203. )
  204.  
  205. (copyfiles
  206.     (source "Sound.prefs")
  207.     (dest "ENVARC:SYS/")
  208. )
  209.  
  210. ;Correct @default-dest so that final information is correct.
  211. (set @default-dest destdir)
  212.  
  213. (complete 95)
  214.  
  215. (message "FOR NEW USERS!\nYou have to set up MagicSelector Preferences to\n"
  216.             "get the MagicSelector package to work at the next reboot.\n\n"
  217.             "FOR OLD USERS! (1.50 or earlier)\nYou need to save the prefs file "
  218.             "to update the prefsfile to version 1.75.\n\n"
  219.             "Do NOT try to change the WBPattern settings when "
  220.             "using MagicSelector. It will cause double "
  221.             "background patterns at the Startup.\n\n"
  222.             "THIS SOFTWARE PACKAGE IS SHAREWARE!\n"
  223. )
  224.  
  225. (run "sys:prefs/MagicSelector")
  226.  
  227. (exit)
  228.